Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing PUT / POST without request body data #13

Merged
1 commit merged into from Feb 6, 2011
Merged

Conversation

rgulewich
Copy link
Contributor

I often find myself doing a PUT or a POST only specifying options - not specifying request body data at all. This patch will only read from stdin if it's a pipe.

This does break the ability to just type in data when doing a POST, so maybe you're not okay with that. If that's the case, this this could maybe be an option to PUT or POST?

@micha
Copy link
Owner

micha commented Feb 6, 2011

Hmm. I like it. The existing behavior isn't very convenient if you're POSTing with null data a lot. And I don't think your changes will be a big deal for people. After all, if you want to just type the data in when doing a POST you can always do something like

cat | POST /Test

which is fine as far as I'm concerned. I think I'll merge you in and if anyone complains we can rethink how to fix it. Thanks!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants